<?php
namespace app\admin\model\openservice;
use app\common\traits\ModelCurd;
use think\Model;

class Userapp extends Model
{
    use ModelCurd;
    protected $table = 'cp_openservice_user_app';
    protected $autoWriteTimestamp = true;


    /**
     * @Notes:应用程序
     * @User: chenping
     * @email: 375129701@qq.com
     * @return \think\model\relation\BelongsTo
     */
    public function userApp()
    {
        return $this->belongsTo(Openapps::class,'group_id');
    }
}